package com.qys.livesMall.shop.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.shop.modal.entity.Advertisement;
import com.qys.livesMall.shop.modal.vo.AdvertisementVO;

import java.util.List;

/**
 * 广告表(H2Advertisement)表服务接口
 *
 * @author makejava
 * @since 2023-06-28 09:12:47
 */
public interface AdvertisementService extends IService<Advertisement> {

    /**
     * 立即弹窗广告
     * @param id 广告id
     */
    void unpack(Long id);

    /**
     * 获取用户未读广告
     * @param userId 用户id
     */
    List<AdvertisementVO> getAdvertisement(Long userId);
}

